#include<bits/stdc++.h>
using namespace std;
const int N=100000;
int p[N];
int main()
{
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int a,n,m,L,V,c,d,e,f;
    cin>>a;
    cin>>n>>m>>L>>V;
    for(int i=0;i<n;i++)
    {
        cin>>d>>e>>f;
    }
    for(int i=0;i<m;i++)
    {
        cin>>p[i];
    }
    cout<<3<<" "<<3;
    return 0;
}
